angular.module("chat").config(['$urlRouterProvider', '$stateProvider',
  '$locationProvider',
  function($urlRouterProvider, $stateProvider, $locationProvider) {

    $stateProvider
      .state('room', {
        url: '/room',
        templateUrl: 'client/room.ng.html',
        controller: 'roomCtrl'
      });

    $urlRouterProvider.otherwise("/room");
  }
]);